package kosta.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloTilesController {
	@RequestMapping("/hello.do")
	public ModelAndView hello(){
		System.out.println("hello tiles");
		// tiles-defs.xml(tiles 설정파일) 의 definition name="layout-tiles" 을 viewName 으로 setting
		return new ModelAndView("layout-tiles","msg","타일즈 테스트 ok");
	}
	@RequestMapping("/register.do")
	public ModelAndView register(){
		System.out.println("register tiles");
		// tiles-defs.xml(tiles 설정파일) 의 definition name="register-layout" 을 viewName 으로 setting
		return new ModelAndView("register-layout","msg","test2");
	}
}
